//引入样式
require('../../assets/css/normalize.css')
require('../../assets/css/reset.css')
require('./ad.less')

//引入js模块
const dom = require('../../utils/dom.js');

//页面加载事件
document.addEventListener('DOMContentLoaded', function () {
    //倒计时
    let num = 5;

    setInterval(function () {
        num--; //过了1秒才会执行，所以一进来就先减1
        dom.get('#time').textContent = num;
        if (num === 0) {
            location.href = 'login.html';
        }
    }, 1000);
});

